import Vue from 'vue'
import VueRouter from 'vue-router'
import Head from '../views/wjx/Head.vue'
import DL from '../views/syz/DL.vue'
// import Operation from '../views/syz/Operation.vue'
// import employee from '../views/syz/employee.vue'
import Repair from '../views/chy/Repair.vue'
import Activity from '../views/chy/Activity.vue'
import Announcement from '../views/chy/Announcement.vue'
import Visitor from '../views/chy/Visitor.vue'
import Complain from '../views/chy/Complain.vue'
import Bill from '../views/chy/Bill.vue'
import CL from '../views/Cwl/CL'
import TC from '../views/Cwl/TC'
import CW from '../views/Cwl/CW'
import QY from '../views/Cwl/QY'
import YK from '../views/Cwl/YK'
import Approval from '../views/Cwl/Approval'
import Carpay from '../views/Cwl/Carpay'
import Vehicle from '../views/Cwl/Vehicle'
// import Complaint from '../views/syz/Complaint.vue'
import Complaint from '../views/syz/Complaint.vue'
import Emanagement from'../views/syz/Emanagement.vue' 
import personal from'../views/syz/personal.vue'
import Operation from '../views/syz/Operation.vue'
import employee from '../views/syz/employee.vue'

Vue.use(VueRouter)


const routes = [
  {
    path:'/',
    name:'DL',
    component: DL
  },
  {
    path:'/plot',
    name:'/plot',
    component: () => import(/* webpackChunkName: "about" */ '../views/zc/plot.vue')
  },
  {
    path:'/addplot',
    name:'/addplot',
    component: () => import(/* webpackChunkName: "about" */ '../views/zc/addPlot.vue')
  },
  {
    path: '/Head',
    name: 'Head',
    component: Head,
    children:[
      {
        path: '/Operation',
        name: 'Operation',
        component: Operation
      },
      {
        path:'/employee',
        name:'employee',
        component:employee
      },
      {
      path:'/CL',
      name:'CL',
      component:CL
    },{
      path:'/TC',
      name:'TC',
      component:TC
    },{
      path:'/CW',
      name:'CW',
      component:CW
    },{
      path:'/YK',
      name:'YK',
      component:YK
    },{
      path:'/QY',
      name:'QY',
      component:QY
    },,{
      path:'/Approval',
      name:'Approval',
      component:Approval
    },{
      path:'/Carpay',
      name:'Carpay',
      component:Carpay
    },{
      path:'/Vehicle',
      name:'veh',
      component:Vehicle
    },
      {
        path:'/community',
        name:'/community',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/Community.vue')
      },
      {
        path:'/portal',
        name:'/portal',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/Portal.vue')
      },
      {
        path:'/addCommunity',
        name:'/addCommunity',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/addCommunity.vue')
      },
      {
        path:'/addPortal',
        name:'/addPortal',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/addPortal.vue')
      },
      {
        path:'/addResident',
        name:'/addResident',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/addResident.vue')
      },
      {
        path:'/resident',
        name:'/resident',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/Resident.vue')
      },
      {
        path:'/ps',
        name:'/ps',
        component: () => import(/* webpackChunkName: "about" */ '../views/zc/ps.vue')
      },



      {path: '/Repair',name: '报修管理',component: Repair},
      {path: '/Activity',name: '活动管理',component: Activity},
      {path: '/Announcement',name: '公告管理',component: Announcement},
      {path: '/Visitor',name: '访客管理',component: Visitor},
      {path: '/Complain',name: '投诉管理',component: Complain},
      {path: '/Bill',name: '账单管理',component: Bill},
      {
        path:'/Complaint',
        name:'投诉管理',
        component:Complaint
      },
      {
        path:'/Emanagement',name:'/员工管理',component:Emanagement
      },
      {
        path:'/personal',name:'/个人信息',component:personal
      },
      {
        path:'/EmanageUpdate',
        name:'/EmanageUpdate',
        component: () => import(/* webpackChunkName: "about" */ '../views/syz/EmanageUpdate.vue')
      }
    ]
  }





]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
